﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SeeNews.aspx.cs" Inherits="admin_SeeNews" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 1050px; margin: 0 auto;">
      标题：<asp:TextBox ID="TextBox1" runat="server" Width="415px" Height="20px"></asp:TextBox> &nbsp;&nbsp; &nbsp;&nbsp; 
      <asp:FileUpload ID="FileUpload1" runat="server" /><asp:Button ID="Button1" runat="server" Text="上传" onclick="Button1_Click" />
      <br />
      <br />
      <asp:GridView ID="gv_majorinfo" runat="server" EnableModelValidation="True" AllowPaging="True"
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
            PageSize="20" Width="1050px" OnPageIndexChanging="gv_majorinfo_PageIndexChanging">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField HeaderText="标题" DataField="n_Title" ItemStyle-Width="520px" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="类型" ItemStyle-Width="80px" DataField="n_Category" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="发表时间" DataField="n_Time" ItemStyle-HorizontalAlign="Center"
                    ItemStyle-Width="150px" />
                <asp:TemplateField HeaderText="操作" ItemStyle-Width="160px" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                       <a href='../detail.aspx?n_id=<%#Eval("n_ID") %>' target="_blank">查看</a> &nbsp;
                        <asp:LinkButton ID="lbtnDelete" runat="server" CommandArgument='<%#Eval("n_ID") %>'
                            OnClick="lbtnDelete_Click" OnClientClick="return confirm('确定要删除该新闻吗？')">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>

    </div>
    </form>
</body>
</html>
